<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="icon" type="image/x-icon" href="/static/images/favicon.ico"/>
    <link rel="stylesheet" href="/static/css/index.css">
    <script >
        function show() {
            var pic = document.getElementById('lock');

            if(pic.style.display==''){
                pic.style.display = 'block';
                document.getElementById('zanzhu').value = '隐藏';
            }
            else{
                pic.style.display = '';
                document.getElementById('zanzhu').value = '赞助';
            }
        }

        function gotoregister() {
            window.location.href = 'register.html';
        }
        function gotologin() {
            window.location.href = '/person/dologin/';
        }
    </script>

    <link rel="stylesheet" href="/static/css/index.css">
</head>
<!--主页-->
<body>
    <div class="topriglog">

        <div class="loginorregister"  style="display: block">
            <!--未登录时显示，登录后隐藏属性-->
            <input class="buttonregister" type="button" value="注册" onclick="gotoregister()"><br /><br />
            <input type="button" value="登录" onclick="gotologin()"><br />
        </div>

        <div style="display: none">
            <!--登录后显示，未登录隐藏-->
            <a href="#">yonghuid</a><br/><br/>
            <a href="#">注销</a>
        </div>

        <input id="zanzhu" type="button" value="赞助" onclick="show()" >
        <img id="lock" src="/static/images/money.jpg" >
    </div>
    <div>
        <!--在这里添加图片-->


    </div>





</body>
</html>